Do not pass -m64 to alpha, ia64, loong64 or riscv64 builds.
authorJordi Mallach <jordi@debian.org>
Mon, 29 Sep 2025 17:28:06 +0000 (19:28 +0200)
committerJordi Mallach <jordi@debian.org>
Mon, 29 Sep 2025 17:28:06 +0000 (19:28 +0200)
Forwarded: no
Last-Update: 2025-05-14

Gbp-Pq: Name ftbfs_alpha_ia64.patch

makefile

index fbd91c978a59263bb424e5114d48c9b7ffbfdf1d..72d04bebeece098ae9f14275d1c80ed7146b7c05 100644 (file)
--- a/makefile
+++ b/makefile
@@ -194,6 +194,14 @@ else ifneq ($(filter arm%,$(UNAME_M)),)
 PLATFORM := arm
 else ifneq ($(filter arm%,$(UNAME_P)),)
 PLATFORM := arm
+else ifneq ($(filter ia64,$(UNAME_M)),)
+PLATFORM := ia64
+else ifneq ($(filter ia64,$(UNAME_P)),)
+PLATFORM := ia64
+else ifneq ($(filter loongarch64,$(UNAME_M)),)
+PLATFORM := loong64
+else ifneq ($(filter loongarch64,$(UNAME_P)),)
+PLATFORM := loong64
 else ifneq ($(filter powerpc,$(UNAME_P)),)
 PLATFORM := powerpc
 else ifneq ($(filter riscv64%,$(UNAME_M)),)
@@ -410,9 +418,39 @@ else
 BIGENDIAN := 1
 endif
 endif
+
+ifeq ($(findstring alpha,$(UNAME)),alpha)
+ARCHITECTURE :=
+ifndef FORCE_DRC_C_BACKEND
+       FORCE_DRC_C_BACKEND := 1
+endif
+endif
+
+ifeq ($(findstring ia64,$(UNAME)),ia64)
+ARCHITECTURE :=
+ifndef FORCE_DRC_C_BACKEND
+       FORCE_DRC_C_BACKEND := 1
+endif
+endif
+
+ifeq ($(findstring loongarch64,$(UNAME)),loongarch64)
+ARCHITECTURE :=
+ifndef FORCE_DRC_C_BACKEND
+       FORCE_DRC_C_BACKEND := 1
+endif
+endif
+
+ifeq ($(findstring riscv64,$(UNAME)),riscv64)
+ARCHITECTURE :=
+ifndef FORCE_DRC_C_BACKEND
+       FORCE_DRC_C_BACKEND := 1
+endif
+endif
+
 ifneq (,$(findstring s390x,$(UNAME)))
 BIGENDIAN := 1
 endif
+
 # FreeBSD
 ifneq (,$(findstring powerpc,$(UNAME)))
 ifneq (,$(findstring powerpc64le,$(UNAME)))